package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerRealGoodsConfigGetListResponse extends BaseQLResponse
{
    /// <summary>
    /// 格式：1,30元手机充值卡|2,50元手机充值卡|3,100元手机充值卡
    /// </summary>
    public String RealGoodsItemsString;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj.getJSONObject("error_response");
        if (t != null && !t.isNullObject())
        {
            ErrCode = t.getString("code");
            ErrMsg = t.getString("msg");
        }
        else
        {
            t = jsonObj.getJSONObject("butler_real_goods_config_get_list_response");
            if (t.has("real_goods_items_string"))
                RealGoodsItemsString = t.getString("real_goods_items_string");
        }
    }
}
